package grammar;

public class PutFor {
    public static void main(String[] args) {
        int sum1=0,i,k,sum2=0;
        for (i=1;i<=100;i++)
            sum1=sum1+i;
        System.out.println(sum1);
        for (k=2;k<=100;k=k+2)
            sum2=sum2+k;
        System.out.println(sum2);
    }
}
